package com.jmb.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jmb.api.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jmb.api.vo.login.LoginVo;
import com.jmb.api.vo.user.UserInfoVo;
import com.jmb.api.vo.user.UserUpdateVo;
import com.jmb.api.vo.user.UserVo;
import jakarta.servlet.http.HttpServletRequest;

import java.util.HashMap;

/**
* @author jinbo
* @description 针对表【user】的数据库操作Service
* @createDate 2025-04-08 13:53:56
*/
public interface UserService extends IService<User> {

    void createUser(UserVo userVo);

    void updateUser(UserUpdateVo userUpdateVo);

    IPage<UserInfoVo> getPageUserList(IPage<UserInfoVo> page, UserInfoVo userInfo);

    void resetPassword(Integer id);

    HashMap<String,Object> login(LoginVo loginVo, HttpServletRequest request);

    void logout(String token);
}
